
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>content · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="media.html" />
    
    
    <link rel="prev" href="response_code.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    OpenAPI 文档结构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="openapi.html">
            
                <a href="openapi.html">
            
                    
                    openapi
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="info.html">
            
                <a href="info.html">
            
                    
                    info
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="paths.html">
            
                <a href="paths.html">
            
                    
                    paths
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.1" data-path="url.html">
            
                <a href="url.html">
            
                    
                    /add, /del, ...
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.1.1" data-path="method.html">
            
                <a href="method.html">
            
                    
                    get, post, ...
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.1.1.1" data-path="parameters.html">
            
                <a href="parameters.html">
            
                    
                    parameters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.1.1.2" data-path="requestBody.html">
            
                <a href="requestBody.html">
            
                    
                    requestBody
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.1.1.3" data-path="responses.html">
            
                <a href="responses.html">
            
                    
                    responses
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.1.1.3.1" data-path="response_code.html">
            
                <a href="response_code.html">
            
                    
                    200, 400, ...
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.1.3.1.1.3.1.1" data-path="content.html">
            
                <a href="content.html">
            
                    
                    content
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.1.1.3.1.1.1" data-path="media.html">
            
                <a href="media.html">
            
                    
                    text/plain
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.1.1.3.1.1.1.1" data-path="schema.html">
            
                <a href="schema.html">
            
                    
                    schema
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="components.html">
            
                <a href="components.html">
            
                    
                    components
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../schema/">
            
                <a href="../schema/">
            
                    
                    常见的 schema 规则
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../schema/string.html">
            
                <a href="../schema/string.html">
            
                    
                    字符串
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../schema/number.html">
            
                <a href="../schema/number.html">
            
                    
                    数字
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../schema/json.html">
            
                <a href="../schema/json.html">
            
                    
                    json object
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../schema/array.html">
            
                <a href="../schema/array.html">
            
                    
                    数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../schema/boolean.html">
            
                <a href="../schema/boolean.html">
            
                    
                    布尔值
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../schema/combining.html">
            
                <a href="../schema/combining.html">
            
                    
                    组合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../schema/ref.html">
            
                <a href="../schema/ref.html">
            
                    
                    引用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="../schema/generic.html">
            
                <a href="../schema/generic.html">
            
                    
                    通用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >content</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="content">content</h1>
<p>content &#x662F;&#x4E00;&#x4E2A;&#x5A92;&#x4F53;&#x7C7B;&#x578B;&#xFF0C;&#x4E0B;&#x9762;&#x7684;&#x5B57;&#x6BB5;&#x90FD;&#x662F;&#x5A92;&#x4F53;&#x7C7B;&#x578B;&#xFF0C;&#x800C;&#x4E14;&#x53EA;&#x80FD;&#x662F;&#x5A92;&#x4F53;&#x7C7B;&#x578B;&#x3002;&#x8BE5;&#x5B57;&#x6BB5;&#x4E5F;&#x4F1A;&#x4F5C;&#x4E3A; http &#x54CD;&#x5E94;&#x5934;&#x4E2D;&#x7684; <code>Content-Type</code> &#x5B57;&#x6BB5;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">paths:</span>
  /add:
<span class="hljs-attr">    post:</span>
<span class="hljs-attr">      responses:</span>
        <span class="hljs-number">200</span>:
<span class="hljs-attr">          description:</span> string <span class="hljs-comment"># &#x63CF;&#x8FF0;</span>
<span class="hljs-attr">          headers:</span>
            <span class="hljs-comment"># &#x54CD;&#x5E94;&#x5934;</span>
<span class="hljs-attr">          content:</span>
            text/plain:
              <span class="hljs-comment"># text schema</span>
            application/json:
              <span class="hljs-comment"># json schema</span>
            image/*:
              <span class="hljs-comment"># image schema</span>
</code></pre>
<p>&#x5728; http &#x54CD;&#x5E94;&#x4E2D;&#xFF0C;&#x6709;&#x65F6;&#x5019;&#x9700;&#x8981;&#x5148;&#x5224;&#x65AD;http&#x54CD;&#x5E94;&#x5934;&#xFF0C;&#x518D;&#x505A;&#x8FDB;&#x4E00;&#x6B65;&#x7684;&#x5904;&#x7406;&#x3002;&#x6BD4;&#x5982;&#x4E0B;&#x8F7D;&#x6587;&#x4EF6;&#xFF0C;&#x5982;&#x679C;&#x80FD;&#x4E0B;&#x8F7D;&#xFF0C;&#x8FD4;&#x56DE;&#x7684;&#x53EF;&#x80FD;&#x662F; <code>application/octet-stream</code> &#x5934;&#xFF0C;&#x7136;&#x540E;&#x8DDF;&#x4E8C;&#x8FDB;&#x5236;&#x6587;&#x4EF6;&#x3002; &#x5982;&#x679C;&#x7531;&#x4E8E;&#x4E0D;&#x80FD;&#x4E0B;&#x8F7D;&#x53EF;&#x80FD;&#x662F;&#x4E00;&#x4E2A; <code>application/json</code> &#x5934;&#x7136;&#x540E;&#x8DDF; &#x4E00;&#x4E2A;json&#x5B57;&#x7B26;&#x4E32;&#x63CF;&#x8FF0;&#x539F;&#x56E0;&#x3002;&#x8FD9;&#x65F6;&#x5019;&#x63A5;&#x53E3;&#x8C03;&#x7528;&#x8005;&#x5C31;&#x9700;&#x8981;&#x5148;&#x5224;&#x65AD;&#x54CD;&#x5E94;&#x5934;&#xFF0C;&#x518D;&#x8FDB;&#x884C;&#x5176;&#x5B83;&#x7684;&#x64CD;&#x4F5C;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="response_code.html" class="navigation navigation-prev " aria-label="Previous page: 200, 400, ...">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="media.html" class="navigation navigation-next " aria-label="Next page: text/plain">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"content","level":"1.1.3.1.1.3.1.1","depth":7,"next":{"title":"text/plain","level":"1.1.3.1.1.3.1.1.1","depth":8,"path":"openapi/media.md","ref":"openapi/media.md","articles":[{"title":"schema","level":"1.1.3.1.1.3.1.1.1.1","depth":9,"path":"openapi/schema.md","ref":"openapi/schema.md","articles":[]}]},"previous":{"title":"200, 400, ...","level":"1.1.3.1.1.3.1","depth":6,"path":"openapi/response_code.md","ref":"openapi/response_code.md","articles":[{"title":"content","level":"1.1.3.1.1.3.1.1","depth":7,"path":"openapi/content.md","ref":"openapi/content.md","articles":[{"title":"text/plain","level":"1.1.3.1.1.3.1.1.1","depth":8,"path":"openapi/media.md","ref":"openapi/media.md","articles":[{"title":"schema","level":"1.1.3.1.1.3.1.1.1.1","depth":9,"path":"openapi/schema.md","ref":"openapi/schema.md","articles":[]}]}]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"openapi/content.md","mtime":"2020-08-17T06:07:42.072Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-08-17T10:32:10.207Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

